import {
    selectProductList,
    listProductSchoolAgentDivisionsById
} from '@/api/channelApi'
const channel = {
    namespaced: true,
    state: {
        
    },
    getters: {
        
    },
    mutations: { 
        
    },
    actions: { 
        SelectProductList ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                selectProductList(params).then(res => {
                    resolve(res)
                })
            })
          },
          ListProductSchoolAgentDivisionsById ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                listProductSchoolAgentDivisionsById(params).then(res => {
                    resolve(res)
                })
            })
          }
    }
}
export default channel
